<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Administrator
 * Date: 10/6/13
 * Time: 12:58 PM
 * To change this template use File | Settings | File Templates.
 */

return array(
    // This path may be different. You can probably get it from `config/main.php`.
    'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
    'name' => 'Cron',

    'preload' => array('log'),

    'import' => array(
        'application.models.*',
        'application.models.user.*',
        'application.components.*',
        'application.components.enumerations.*',
        'application.components.widgets.*',
        'application.helpers.*',
        'application.services.*',
        'application.extensions.oauthServer.*',
        'application.extensions.*'
    ),
    // We'll log cron messages to the separate files
    'components' => array(

        'mailer' => array(
            'class' => 'application.extensions.mailer.EMailer',
            'pathViews' => 'application.views.email',
            'pathLayouts' => 'application.views.email.layouts'
        ),

        'log' => array(
            'class' => 'CLogRouter',
            'routes' => array(
                array(
                    'class' => 'CFileLogRoute',
                    'logFile' => 'cron.log',
                    'levels' => 'error, warning',
                ),
                array(
                    'class' => 'CFileLogRoute',
                    'logFile' => 'cron_trace.log',
                    'levels' => 'trace',
                ),
            ),
        ),

        // Your DB connection
        'db' => array(
            'connectionString' => 'mysql:host=localhost;dbname=hs_tudong_vienlien247_db',
            'emulatePrepare' => true,
            'username' => 'root',
            'password' => '',
            'charset' => 'utf8',
//    'tablePrefix' => 'bp_',
        ),
    ),
    'params' => require(dirname(__FILE__) . '/params.php'),
);